<input type="text" placeholder="city" ng-model="city"/>
<button ng-click="getTotal()">Calculate price</button>
<p ng-show="total">{{total}}</p>
<p><button ng-click="commit()">Commit to buy</button></p>